<?php
/**
 * Created by litong on Date: 2018/12/22 0022 上午 9:44
 */
$x=5;$y=10;
function myTest()
{
  $GLOBALS['y']=$GLOBALS['x']+$GLOBALS['y'];
}
myTest();
echo $y;
?>